{%extends 'template.html'%}
{%block css%}
<link href="/static/css/jquery.dataTables.css" rel="stylesheet" type="text/css">
<link href="/static/css/mycss.css" rel="stylesheet" type="text/css">
{%endblock%}
{%block content%}
<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">{{head.value}}</h1>                
        </div>            
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="btn-group">
                        {% if head.mine%}
                        <a href="/dashboard/flow_add"><button type="button" class="btn btn-primary">增加</button></a>
                        <a><button id='bt-del' type="button" class="btn btn-danger" disabled="true">删除</button></a>
                        {%endif%}
                    </div>                    
                </div>
                <div class="panel-body">
                      <table id="mytable" class="display" width="100%" cellspacing="0">
                          <thead>
                              <tr>
                                  <!-- <th>流程号</th> -->
                                  <th>流程类型</th>
                                  <th>申请人</th>
                                  <th>审批人</th>
                                  <th>节点状态</th>
                                  <th>申请时间</th>
                                  <th>完成时间</th>
                                  <th>项目</th>
                                  <th>数量</th>
                                  <th>资源类型</th>
                                  <th>服务器IP</th>
                                  <th>服务器名称</th>
                                  <th>操作</th>
                              </tr>
                          </thead>                
                      </table>
                </div>
            </div>
        </div>
    </div>
</div>
{% include 'detailModal.html' %}
{%endblock%}
{%block bodyjs%}
    <script src="/static/js/jquery.dataTables.js" ></script>
    {{ django_context_varable }}
    {% verbatim %}
    <script id="tpl" type="text/x-handlebars-template">
          {{#each func}}
          	<button type="button" class="btn btn-{{this.type}} btn-sm" onclick="{{this.fn}}">{{this.name}}</button>
          {{/each}} 
    </script>
    <script id="wrap" type="text/x-handlebars-template">
          {{#each func}}
            <span id="span-wrap">{{this.values}}</span>
          {{/each}} 
    </script>
    {% endverbatim %}
    <script src="/static/js/handlebars-v3.0.1.js"></script>
    <script src="/static/js/approve.js"></script>
{%endblock%}